home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Modules / BackSpaceModules / Source / FireflyView / FireflyView.h next >
Text File  |  1993-07-04  |  1KB  |  56 lines

  1. /*
  2.     file:
  3.         FireflyView.h
  4.     
  5.     history:
  6.         1993-06-06, andrew abernathy
  7.             • created
  8.         1993-07-04, andrew abernathy
  9.             • added configurability
  10. */
  11.  
  12.  
  13. #import <appkit/appkit.h>
  14. #import "Thinker.h"
  15.  
  16.  
  17. @interface    FireflyView:View
  18.     {
  19.     NXPoint *    fireflies;        // turns out, this is an array of firefly positions
  20.     NXColor        fireflyColor;        // what color are these fireflies?
  21.     id        fireflyColorWell;    // this is the color well for setting the fireflies color
  22.     int        fireflyCount;        // how many fireflies?
  23.     id        fireflyCountField;    // this is the field for setting the number of fireflies
  24.     BOOL        fireflyCountChanged;    // firefly count changed flag
  25.     NXColor        backgroundColor;    // what color is the background?
  26.     id        backgroundColorWell;    // this is the background color well in our inspector
  27.     int        backgroundColorChanged;    // background color changed flag
  28.     id        sharedInspectorPanel;    // our inspector
  29.     BOOL        isBoring;        // are we a boring module?
  30.     id        isBoringSwitch;        // this is the switch for setting whether or not we're boring
  31.     }
  32.  
  33.  
  34. // these are things needed for general operation
  35.  
  36. + initialize;
  37. - inspectorInstalled;
  38. - oneStep;
  39. - drawSelf:(const NXRect *)rects :(int)rectCount;
  40. - initFrame:(const NXRect *)frameRect;
  41. - inspector:sender;
  42. - (BOOL)isBoringScreenSaver;
  43.  
  44.  
  45. // these are view-specific methods
  46.  
  47. - (NXPoint *)generateFireflies:(int)numFireflies;
  48. - setBackgroundColor:sender;
  49. - setIsBoring:sender;
  50. - setFireflyColor:sender;
  51. - setFireflyCount:sender;
  52. - openReadme:sender;
  53. - resetSettings:sender;
  54.  
  55. @end
  56.